#ifndef GUI_POINT_H_H_H_H_
#define GUI_POINT_H_H_H_H_
#include "view3DInventorViewer.h"
namespace Gui
{
	class DrawState
	{
	public:
		DrawState();
		virtual ~DrawState();
	public:
		virtual void mouseButtonPressedEvent(Vx2DVector& mousePos){}
		virtual void mouseButtonMoveEvent(Vx2DVector& mousePos){}
		virtual void mouseButtonUpEvent(Vx2DVector& mousePos){}

	protected:
		
		CKRenderContext* DrawContext;
	};
	class DrawPointState : public DrawState
	{
	public:
		DrawPointState(void);
	public:
		void mouseButtonPressedEvent(Vx2DVector& mousePos);
		void mouseButtonMoveEvent(Vx2DVector& mousePos);
		void mouseButtonUpEvent(Vx2DVector& mousePos);
	public:
		VxVector& transMousePosToWorldPos(Vx2DVector& pos);
		void createPoint(VxVector& pos);

	private:
		bool mMouseButtonDown;
		VxVector mOldPosition;
	};
}

#endif